package com.ruoyi.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName blog_articles
 */
@TableName(value ="blog_articles")
@Data
public class BlogArticles implements Serializable {
    /**
     * 文章id
     */
    @TableId(value = "art_id", type = IdType.AUTO)
    private Long artId;

    /**
     * 标题
     */
    @TableField(value = "art_title")
    private String artTitle;

    /**
     * 所属标签ids
     */
    @TableField(value = "art_tag")
    private String artTag;

    /**
     * 文章类别id
     */
    @TableField(value = "art_category_id")
    private Long artCategoryId;

    /**
     * 封面图片地址
     */
    @TableField(value = "art_cover_url")
    private String artCoverUrl;


    /**
     * 文章内容
     */
    @TableField(value = "art_content")
    private String artContent;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 创建人id
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改人id
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 发布时间
     */
    @TableField(value = "publish_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 0正常1删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}